import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    avatar: '' // 用户图像
  },
  getters: {
    avatar: state => state.avatar
  },
  mutations: {
    SET_AVATAR: (state, avatar) => {
      state.avatar = avatar
    }
  },
  actions: {
  }
})
